package com.foreveross.bsl.mam.model.rbac.domain;

import java.util.Date;
import org.springframework.data.annotation.Id;
import org.springframework.data.mongodb.core.mapping.Document;
import org.springframework.data.mongodb.core.mapping.Field;

import com.foreveross.bsl.mongodb.domain.Entity;

/**
 * 资源实体 <BR>
 * [功能详细描述]
 * 
 * @author Amberlo
 * @version [mam-model , 2013-6-20]
 */
@Document
public class Resource extends Entity {

	/** 角色id */
	@Id
	private String id;

	/** 是否有效 */
	@Field("available")
	private boolean available;

	/** 创建时间 */
	@Field("create_time")
	private Date create_time;

	/** 修改时间 */
	@Field("modified_at")
	private Date modified_at;

	/** 资源名 */
	@Field("name")
	private String name;

	/** 资源地址 */
	@Field("url")
	private String url;

	public boolean isAvailable() {
		return available;
	}

	public void setAvailable(boolean available) {
		this.available = available;
	}

	public Date getCreate_time() {
		return create_time;
	}

	public void setCreate_time(Date create_time) {
		this.create_time = create_time;
	}

	public Date getModified_at() {
		return modified_at;
	}

	public void setModified_at(Date modified_at) {
		this.modified_at = modified_at;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getId() {
		return id;
	}

	public void setId(String id) {
		this.id = id;
	}

	public String getUrl() {
		return url;
	}

	public void setUrl(String url) {
		this.url = url;
	}

}
